/**
 * 
 */
package com.ibuonline.search.solr.score.product.rule;

import java.util.Map;

/**
 * @author Liuye
 * 
 */
public final class ViewNumScoreRule extends ProductScoreRule {
	public static final String KEY = "viewNum";

	protected float calcClickCount(float clickCount, float productMaxClickCount) {
		return (1f - (productMaxClickCount - clickCount) / productMaxClickCount) * 100f;
	}

	@Override
	public void apply(Map<String, Object> scoreData) {
	}

}
